package com.wiloon.java8x.basic.collection;

import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;

/*
 * Created by roy on 5/16/17;
 */
public class CollectionX {
    public static void main(String[] args) {
        ArrayBlockingQueue queue = new ArrayBlockingQueue(10);
        queue.add("foo");
        System.out.println(queue.size());


    }

    public void tmp() {
//        List<String> list = new LinkedList<>();
//        list.add("a");
//        list.add("b");
//        list.add("c");
//        list.add(null);
//        list.add("d");
//
//        for (String s : list) {
//            System.out.println(s);
//        }
    }
}
